package com.itheima.extends2;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class Animal {
    private String name;
    private int age;

    public abstract void eat();

}